﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace WebQQ
{
    public partial class VerifyForm : Form
    {
        private VerifyForm()
        {
            InitializeComponent();
        }

        public static string Verify(byte[] data) 
        {
            var form = new VerifyForm();
            MemoryStream stream = new MemoryStream(data);
            form.pictureBox1.Image = Image.FromStream(stream);
            form.ShowDialog();
            form.Focus();
            return form.textBox1.Text;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Yes;
        }
    }
}
